package com.atldy.commerce.feign;

import com.atldy.commerce.account.BalanceInfo;
import com.atldy.commerce.vo.CommonResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <h2> 不完全的余额服务 feign 接口 </h2>
 *
 * @Author: li-dong-yang
 * @CreateTime: 2021-11-04 21:51
 */
@FeignClient(contextId = "notSecureBalanceClient", value = "e-commerce-service-account")
public interface NotSecureBalanceClient {

    /**
     * <p>扣除余额</p>
     */
    @PostMapping("/ecommerce-service-account/balance/getSimpleGoodsInfos")
    CommonResponse<BalanceInfo> deductionsBalanceInfo(@RequestBody BalanceInfo balanceInfo);

}